package cn.icanci.loopstack.bic.graph.node;

import java.util.List;

import cn.hutool.core.collection.CollectionUtil;
import cn.icanci.loopstack.bic.graph.GraphBurying;
import lombok.Data;

/**
 * @author icanci
 * @since 1.0 Created in 2023/09/21 13:20
 */
@Data
public class UnitViewNode extends Node {
    /** 节点的数据  */
    List<GraphBurying> buryings;
    /** 路径是否经过  */
    private boolean    pathPass;


    public boolean hasBurying() {
        return CollectionUtil.isNotEmpty(buryings);
    }

    public boolean hasPathPass() {
        return pathPass || hasBurying();
    }
}
